package com.zhanbo.zhanbowymusic.main.featured.adapter;

import android.content.Context;

import com.mwx.baselib.base.BaseBindingAdapter;
import com.mwx.baselib.bean.SongBean;
import com.mwx.baselib.utils.GlideUtils;
import com.zhanbo.zhanbowymusic.R;
import com.zhanbo.zhanbowymusic.databinding.ItemHomeHotPodcastBinding;
import com.zhanbo.zhanbowymusic.databinding.ItemNewMusicBinding;

public class FeaturedHomeNewMusicListAdapter extends BaseBindingAdapter<SongBean, ItemNewMusicBinding> {
    public FeaturedHomeNewMusicListAdapter(Context context) {
        super(context);
    }

    @Override
    protected int getLayoutResId(int viewType) {
        return R.layout.item_new_music;
    }

    @Override
    protected void onBindItem(ItemNewMusicBinding binding, SongBean item) {
        GlideUtils.loadImageRounded10(context,item.getCoverImg(),binding.ivHead);
        binding.tvName.setText(item.getName()+"");
        binding.tvSingerName.setText(item.getArtistName()+"");
    }
}
